<?php

namespace Lib;

class Cos {

	/**
	 * 上传文件
	 * @param $file
	 * @return array
	 * @throws Exception
	 */
	public static function Upload($file) {
	}

	/**
	 * 删除文件
	 * @param $key
	 * @return bool
	 * @throws \Exception
	 */
	public static function Remove($key) {
	}

	/**
	 * 跳转COS文件的地址
	 * @param $key
	 * @param $args
	 * 'ResponseCacheControl' => 'string',
	 * 'ResponseContentDisposition' => 'string',
	 * 'ResponseContentEncoding' => 'string',
	 * 'ResponseContentLanguage' => 'string',
	 * 'ResponseContentType' => 'string',
	 * 'ResponseExpires' => 'string',
	 * @return void
	 * @throws Exception
	 */
	public static function Location($key, $args = array()) {
	}

	/**
	 * 返回图片类资源的 URL
	 * @param $key
	 * @return string
	 */
	public static function ImageUrl($key) {
	}

	/**
	 * 文件接收
	 * @param $file
	 * @param $step
	 * @param $data
	 * @return bool
	 * @throws Exception
	 */
	public static function FileReceive($file, $step, $data) {
	}

}